/**
 * The MIT License (MIT)
 * 
 * Copyright (c) 2016 mo_yq5 (mo_yq5@163.com)
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 */
package com.openapi.alipay.trade;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 请求参数－订单包含的商品列表信息
 * @author Moyq5
 * @since 2016年7月25日
 */
public class GoodsDetail {

	/**
	 * 商品的编号<br>
	 * 必填，最长32，如：apple-01
	 */
	@JsonProperty("goods_id")
	private String goodsId;
	
	/**
	 * 支付宝定义的统一商品编号<br>
	 * 最长32，如：20010001
	 */
	@JsonProperty("alipay_goods_id")
	private String alipayGoodsId;
	
	/**
	 * 商品名称<br>
	 * 必填，最长256，如：ipad
	 */
	@JsonProperty("goods_name")
	private String goodsName;
	
	/**
	 * 商品数量<br>
	 * 必填，最长10，如：1
	 */
	private Integer quantity;
	
	/**
	 * 商品单价，单位为元<br>
	 * 必填，最长9，如：2000
	 */
	private Float price;
	
	/**
	 * 商品类目<br>
	 * 最长24，如：34543238
	 */
	@JsonProperty("goods_category")
	private String goodsCategory;
	
	/**
	 * 商品描述信息<br>
	 * 最长1000，如：特价手机
	 */
	private String body;
	
	/**
	 * 商品的展示地址<br>
	 * 最长400，如：http://www.alipay.com/xxx.jpg
	 */
	@JsonProperty("show_url")
	private String showUrl;

	/**
	 * @return the goodsId
	 */
	public String getGoodsId() {
		return goodsId;
	}

	/**
	 * @param goodsId the goodsId to set
	 */
	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	/**
	 * @return the alipayGoodsId
	 */
	public String getAlipayGoodsId() {
		return alipayGoodsId;
	}

	/**
	 * @param alipayGoodsId the alipayGoodsId to set
	 */
	public void setAlipayGoodsId(String alipayGoodsId) {
		this.alipayGoodsId = alipayGoodsId;
	}

	/**
	 * @return the goodsName
	 */
	public String getGoodsName() {
		return goodsName;
	}

	/**
	 * @param goodsName the goodsName to set
	 */
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	/**
	 * @return the quantity
	 */
	public Integer getQuantity() {
		return quantity;
	}

	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return the price
	 */
	public Float getPrice() {
		return price;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(Float price) {
		this.price = price;
	}

	/**
	 * @return the goodsCategory
	 */
	public String getGoodsCategory() {
		return goodsCategory;
	}

	/**
	 * @param goodsCategory the goodsCategory to set
	 */
	public void setGoodsCategory(String goodsCategory) {
		this.goodsCategory = goodsCategory;
	}

	/**
	 * @return the body
	 */
	public String getBody() {
		return body;
	}

	/**
	 * @param body the body to set
	 */
	public void setBody(String body) {
		this.body = body;
	}

	/**
	 * @return the showUrl
	 */
	public String getShowUrl() {
		return showUrl;
	}

	/**
	 * @param showUrl the showUrl to set
	 */
	public void setShowUrl(String showUrl) {
		this.showUrl = showUrl;
	}
}
